home *** CD-ROM | disk | FTP | other *** search
- # $Id$
- #
- # File Makefile
- # Part of ChessBase utilities file format (CBUFF)
- # Author Anjo Anjewierden, anjo@swi.psy.uva.nl
- # Purpose Makefile
- # Works with GNU CC 2.4.5
- #
- # Notice Copyright (c) 1993 Anjo Anjewierden
- #
- # History 08/06/93 (Created)
- # 14/11/93 (Last modified)
-
-
- CC= gcc
- CFLAGS= -g -O2 -Wall -ansi -pedantic
- LIBS=
-
- DOS= cuclean.exe culatex.exe culist.exe cumerge.exe cunames.exe\
- cupgn.exe cusort.exe custats.exe cuverify.exe
- PROGRAMS= cuclean culatex culist cumerge cunames cupgn\
- cusort custats cuverify
- LIB= libcbuff.a
- OBJECTS= alloc.o cbase.o cbgame.o cbheader.o game.o cbuff.o \
- move.o position.o string.o symbols.o text.o \
- language.o strtable.o option.o error.o file.o
- SOURCES= alloc.c cbase.c cbgame.c cbheader.c game.c cbuff.c \
- move.c position.c string.c symbols.c text.c \
- language.c strtable.c option.c error.c file.c
- HEADERS= cbuff.h machine.h
- UTILITIES= clean.c latex.c list.c merge.c names.c pgn.c sort.c\
- stats.c verify.c
- DOC= cbuff.texinfo cbuff.texi cbuff.ps
- MAKEFILES= Makefile Makefile.bcc
- SUPPORT= ascii.sym pgn.sym informant.sym cbuff.sty\
- informant.beg informant.end cbuff.def places.def
- INTRO= COPYING CONTENTS NOTES README
-
-
- all: $(LIB) $(PROGRAMS)
-
- $(LIB): $(OBJECTS)
- ar ru $(LIB) $(OBJECTS)
- # ranlib $(LIB)
-
- cuclean: $(LIB) clean.o
- $(CC) $(CFLAGS) -o cuclean clean.o $(LIB)
-
- culatex: $(LIB) latex.o
- $(CC) $(CFLAGS) -o culatex latex.o $(LIB)
-
- culist: $(LIB) list.o
- $(CC) $(CFLAGS) -o culist list.o $(LIB)
-
- cumerge: $(LIB) merge.o
- $(CC) $(CFLAGS) -o cumerge merge.o $(LIB)
-
- cunames: $(LIB) names.o
- $(CC) $(CFLAGS) -o cunames names.o $(LIB)
-
- cupgn: $(LIB) pgn.o
- $(CC) $(CFLAGS) -o cupgn pgn.o $(LIB)
-
- cusort: $(LIB) sort.o
- $(CC) $(CFLAGS) -o cusort sort.o $(LIB)
-
- custats: $(LIB) stats.o
- $(CC) $(CFLAGS) -o custats stats.o $(LIB)
-
- cuverify: $(LIB) verify.o
- $(CC) $(CFLAGS) -o cuverify verify.o $(LIB)
-
- .c.o: $*.c $(HEADERS)
- $(CC) -c $(CFLAGS) $*.c
-
- clean:
- @rm $(OBJECTS) $(PROGRAMS)
-
- tape:
- @rm -f cbuff.*.tar cbuff.*.tar.gz
- tar cfv cbuff.src.tar $(SOURCES) $(HEADERS) $(UTILITIES) $(MAKEFILES)
- tar cfv cbuff.dos.tar $(DOS)
- # tar cfv cbuff.doc.tar $(DOC)
- tar cfv cbuff.support.tar $(SUPPORT)
- tar cfv cbuff.intro.tar $(INTRO)
- gzip cbuff.src.tar
- gzip cbuff.dos.tar
- # gzip cbuff.doc.tar
- gzip cbuff.support.tar
- gzip cbuff.intro.tar
-
-
- documentation: cbuff.texinfo
- expand $(SOURCES) $(HEADERS) \
- | ti2q -c - -o - \
- | ti2q -m cbuff.texinfo - -o cbuff.texi
- tex cbuff.texi
- texindex cbuff.??
- tex cbuff.texi
- dvips -o cbuff.ps cbuff.dvi
-
- manual: manual.texi
- tex manual.texi
- texindex manual.??
- tex manual.texi
- dvips -o manual.ps manual.dvi
-